@import './theme.scss';

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font: 14px/1.5 'PingFang SC', 'Lantinghei SC', 'Microsoft YaHei', 'HanHei SC', 'Helvetica Neue', 'Open Sans', Arial, 'Hiragino Sans GB', '微软雅黑', STHeiti,
		'WenQuanYi Micro Hei', SimSun, sans-serif;
	color: #333;
	background-color: #f7f7f7;
}
ul,
li {
	list-style-type: none;
}
em,
i,
ins {
	font-style: normal;
}
img {
	border: none;
	vertical-align: top;
}
a {
	color: #333;
	text-decoration: none;
	transition: color 0.5s;
}
a:hover {
	text-decoration: none;
}
.clearfix:after {
	content: '.';
	display: block;
	height: 0;
	overflow: hidden;
	clear: both;
}
.clearfix {
	zoom: 1;
}
::selection {
	background: #373d41;
	color: #fff;
	text-shadow: none;
}
::-webkit-scrollbar-track-piece {
	width: 5px;
}
::-webkit-scrollbar {
	width: 10px;
	height: 6px;
	background-color: #fff;
}
::-webkit-scrollbar-thumb {
	height: 50px;
	background-color: #34a1e0;
	border-radius: 50px;
}

// 自定义element-ui组件样式
.el-message-box {
	max-width: 95%;
}
.el-image-viewer__close {
	color: #fff;
}
.el-submenu .el-menu-item {
	min-width: inherit;
}

// 导航栏样式
.left {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	.el-menu {
		border-right: none;
	}
	.menu-switch {
		height: 30px;
		color: #fff;
		text-align: center;
		font-weight: bold;
		line-height: 30px;
		background-color: #393d49;
		cursor: pointer;
		font-size: 20px;
	}
	.iconfont {
		display: inline-block;
		vertical-align: middle;
		margin-right: 5px;
	}
	&.small .iconfont {
		margin-right: 0;
	}
	.el-scrollbar {
		position: fixed;
		top: 50px;
		left: 0;
		bottom: 0;
		width: 190px;
		.el-scrollbar__wrap {
			background-color: #393d49;
			overflow: auto;
		}
		.el-menu-item {
			border-bottom: solid 1px rgba(255, 255, 255, 0.1);
			&.is-active {
				/* border-color: #34a1e0; */
			}
		}
		.el-submenu__title {
			border-bottom: solid 1px rgba(255, 255, 255, 0.1)!important;
		}
	}
	&.small {
		.el-scrollbar {
			width: 64px;
		}
		.el-menu-item {
			text-align: center;
		}
	}
	.logout {
		display: none;
		text-align: center;
		height: 56px;
		line-height: 56px;
		border-bottom: solid 1px rgba(255, 255, 255, 0.1);
		font-size: 14px;
		color: #fff;
	}
}

.menu-small-box {
	display: none;
}

// 头部样式
.top-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	background-color: $color-theme;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	.top-bar-l {
		flex: 1;
		img {
			max-height: 25px;
			vertical-align: middle;
			margin: -2px 5px 0 0;
		}
		a.top-bar-link {
			min-width: 190px;
			display: inline-block;
			vertical-align: top;
			/* border-right: solid 1px $color-theme; */
			padding: 0 12px;
			line-height: 50px;
			height: 50px;
			overflow: hidden;
		}
	}
	a {
		color: #fff;
		&.top-bar-link {
			display: inline-block;
			vertical-align: top;
			/* border-right: solid 1px $color-theme; */
			padding: 0 12px;
			line-height: 50px;
			height: 50px;
			overflow: hidden;
		}
		&.top-bar-link:hover {
			/* background: $color-theme; */
		}
		&:last-child {
			border-right: none;
		}
	}
	.top-bar-r {
		/* border-left: solid 1px $color-theme; */
		.el-dropdown:hover {
			background: #2a2f32;
		}
		a img {
			height: 40px;
			border-radius: 50%;
			margin-right: 10px;
		}
		a i {
			margin: -3px 5px 0 0;
			font-size: 18px;
			display: inline-block;
			vertical-align: middle;
		}
	}
	.m-menu {
		display: none;
		margin-right: 10px;
		i {
			display: block;
			line-height: 0;
			margin: 6px 0;
			font-size: 30px;
		}
	}
}

// main.vue主体样式
.main {
	.container {
		position: fixed;
		top: 50px;
		left: 190px;
		right: 0;
		bottom: 20px;

		&.small {
			left: 64px;
		}
	}
	.main-content {
		padding: 10px;
		width: 100%;
		height: 100%;
		overflow-y: auto;
		.el-breadcrumb {
			margin-bottom: 10px;
		}
	}
}

// 移动端导航显示动画
.fade-enter-active,
.fade-leave-active {
	transition: opacity 0.5s;
}
.fade-enter,
.fade-leave-to {
	opacity: 0;
}
.move-enter-active,
.move-leave-active {
	transition: all 0.5s;
}
.move-enter,
.move-leave-to {
	transform: translateX(-100%);
}

@media (max-width: 768px) {
	.left.pc {
		display: none;
	}
	.main {
		.container {
			left: 0;
		}
	}
	.top-bar {
		.m-menu {
			display: block;
		}
		.top-bar-r {
			display: none;
		}
	}
	.menu-small {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 99;
		.close-menu {
			position: absolute;
			right: 20px;
			top: 20px;
			color: #fff;
			font-size: 40px;
			z-index: 1;
		}
	}
	.menu-small-box {
		display: block;
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 100;
		transition: all 0.5s;
		width: 190px;
		transform: translateX(-100%);
		&.active {
			transform: translateX(0);
		}
		.left {
			position: absolute;
			left: 0;
			top: 0;
			bottom: 0;
			.menu-switch {
				display: none;
			}
			.logout {
				display: block;
			}
			.el-scrollbar {
				top: 0;
			}
		}
	}
}
.vl-notify {
	&-msg{
		z-index: 3000 !important;
	}
	&.vl-notify-main {
		padding-bottom: 0 !important;
		.vl-notify-content {
			height: calc(100% - 42px) !important;
		}
	}
}
.pages {
	text-align: right;
	margin-top: 20px;
}
.el-breadcrumb {
	margin-bottom: 20px;
	font-size: 16px;
}
.el-table thead th {
	background: #f5f7fa !important;
}
.search {
	margin-bottom: 20px;
	.el-card__body {
		padding-bottom: 0;
	}
	.el-form-item {
		margin-bottom: 20px;
	}
}
.title {
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 30px;
	&::before {
		content: '';
		display: inline-block;
		vertical-align: middle;
		margin: -4px 10px 0 0;
		width: 3px;
		height: 20px;
		border-radius: 5px;
		background-color: #00a0e9;
	}
}

.el-page-header {
	margin-bottom: 20px;
}
.el-upload__tip {
	line-height: normal;
}
.avatar-uploader .el-upload {
	border: 1px dashed #d9d9d9;
	border-radius: 6px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	vertical-align: top;
}
.avatar-uploader .el-upload:hover {
	border-color: #409eff;
}
.avatar-uploader-icon {
	font-size: 28px;
	color: #8c939d;
	width: 100px;
	height: 100px;
	line-height: 100px;
	text-align: center;
}
.avatar {
	width: 100px;
	height: 100px;
	display: block;
}

.el-breadcrumb__item{
	margin: 10px 0;
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	font-weight: bold;
}

.el-breadcrumb__item::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin: -4px 10px 0 0;
    width: 3px;
    height: 20px;
    border-radius: 5px;
    background-color: #00a0e9;
}

.top-menu{
	display: flex;
	.menu-left{
		display: flex;
		flex: 1;
		flex-wrap: wrap;
	}
	.menu-right{
		display: flex;
		flex-direction: row-reverse;
		.add {
			margin-right: 10px;
		}
	}
}
.data-number{
	text-align: right;
	line-height: 30px;
}

.el-date-editor .el-range-separator{
	width: 20px;
}

